package fhq.hcmute.edu.vn.system;

import java.io.Serializable;

/**
 * @author Hien Nguyen Oct 30, 2012
 */
public abstract class MySystem implements Serializable {
	private static final long serialVersionUID = 2297853143313467972L;
	protected String name = null;
	protected String path = null;
	protected int iconUrl = -1;
	protected boolean isHidden = false;
	protected FileType fileType;

	public FileType getFileType() {
		return fileType;
	}

	public void setFileType(FileType fileType) {
		this.fileType = fileType;
	}

	public abstract void add(MySystem myDisk);

	public final String getName() {
		return name;
	}

	public final void setName(String name) {
		this.name = name;
	}

	public final String getPath() {
		return path;
	}

	public final void setPath(String path) {
		this.path = path;
	}

	public final int getIconUrl() {
		return iconUrl;
	}

	public final void setIconUrl(int iconUrl) {
		this.iconUrl = iconUrl;
	}

	/**
	 * @return the isHidden
	 */
	public boolean isHidden() {
		return isHidden;
	}

	/**
	 * @param isHidden
	 *            the isHidden to set
	 */
	public void setHidden(boolean isHidden) {
		this.isHidden = isHidden;
	}

}
